of

inline fun <T> of(value: T): KOptional<T>(source)

Creates a new KOptional with the provided potentially null value.